(global.webpackJsonp = global.webpackJsonp || []).push([ [ "shop/order/orderList" ], {
    "638e": function(e, t, r) {
        r.d(t, "b", function() {
            return n;
        }), r.d(t, "c", function() {
            return i;
        }), r.d(t, "a", function() {});
        var n = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    },
    7219: function(e, t, r) {
        r.r(t);
        var n = r("638e"), i = r("a1c7");
        for (var o in i) "default" !== o && function(e) {
            r.d(t, e, function() {
                return i[e];
            });
        }(o);
        r("781e");
        var a = r("f0c5"), s = Object(a.a)(i.default, n.b, n.c, !1, null, "40dee322", null, !1, n.a, void 0);
        t.default = s.exports;
    },
    "781e": function(e, t, r) {
        var n = r("8c17");
        r.n(n).a;
    },
    "8c17": function(e, t, r) {},
    a1c7: function(e, t, r) {
        r.r(t);
        var n = r("d8e9"), i = r.n(n);
        for (var o in n) "default" !== o && function(e) {
            r.d(t, e, function() {
                return n[e];
            });
        }(o);
        t.default = i.a;
    },
    d8e9: function(e, t, r) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var n = r("26cb"), i = (function(e) {
                e && e.__esModule;
            }(r("801c")), r("8434")), o = r("a71e"), a = (r("db8f"), r("8f9b")), s = r("b806");
            function c(e) {
                return function(e) {
                    if (Array.isArray(e)) return u(e);
                }(e) || function(e) {
                    if ("undefined" != typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e);
                }(e) || function(e, t) {
                    if (e) {
                        if ("string" == typeof e) return u(e, t);
                        var r = Object.prototype.toString.call(e).slice(8, -1);
                        return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? u(e, t) : void 0;
                    }
                }(e) || function() {
                    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }();
            }
            function u(e, t) {
                (null == t || t > e.length) && (t = e.length);
                for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
                return n;
            }
            function d(e, t) {
                var r = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var n = Object.getOwnPropertySymbols(e);
                    t && (n = n.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), r.push.apply(r, n);
                }
                return r;
            }
            function f(e) {
                for (var t = 1; t < arguments.length; t++) {
                    var r = null != arguments[t] ? arguments[t] : {};
                    t % 2 ? d(Object(r), !0).forEach(function(t) {
                        l(e, t, r[t]);
                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : d(Object(r)).forEach(function(t) {
                        Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
                    });
                }
                return e;
            }
            function l(e, t, r) {
                return t in e ? Object.defineProperty(e, t, {
                    value: r,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = r, e;
            }
            var b = {
                computed: f(f({}, (0, n.mapGetters)([ "mainColor", "priceColor" ])), {}, {
                    conBtn: function() {
                        return {
                            color: this.mainColor,
                            border: "1rpx solid " + this.mainColor
                        };
                    }
                }),
                data: function() {
                    return {
                        isRequest: !1,
                        hideNav: !0,
                        TabCur: 0,
                        loadingOk: !0,
                        headerTop: "0px",
                        navArray: [ {
                            id: -1,
                            name: "全部"
                        }, {
                            id: 1,
                            name: "待付款"
                        }, {
                            id: 2,
                            name: "待发货"
                        }, {
                            id: 3,
                            name: "待收货"
                        }, {
                            id: 4,
                            name: "已完成"
                        }, {
                            id: 5,
                            name: "售后"
                        } ],
                        orderList: [],
                        tabbarIndex: 2,
                        pager: 1,
                        pagesize: 10,
                        is_bar: "",
                        isShow: !1
                    };
                },
                onLoad: function(e) {
                    var t = this;
                    switch (t.type_id = (0, o.isEmpty)(e.id) ? -1 : e.id, e.id) {
                      case "-1":
                        t.TabCur = 0;
                        break;

                      case "1":
                        t.TabCur = 1;
                        break;

                      case "2":
                        t.TabCur = 2;
                        break;

                      case "3":
                        t.TabCur = 3;
                        break;

                      case "4":
                        t.TabCur = 4;
                        break;

                      case "5":
                        t.TabCur = 5;
                    }
                },
                mounted: function() {},
                onShow: function() {
                    var e = this, t = this;
                    (0, s.init)(t).then(function(r) {
                        t.is_bar = r, e.pager = 1, t.orderList = [], t.getOrderList();
                    });
                },
                onReachBottom: function() {
                    this.pager++, this.loadingOk = !1, this.getOrderList();
                },
                onPullDownRefresh: function() {
                    this.isRequest = !1, this.loadingOk = !1, this.pager = 1, this.orderList = [], this.getOrderList();
                },
                methods: {
                    tabSelect: function(e, t) {
                        this.TabCur = t, this.type_id = e.id, this.tabbarIndex = t, this.orderList = [], 
                        this.pager = 1, this.getOrderList();
                    },
                    getOrderList: function() {
                        var t = this, r = this;
                        this.loadingOk = !1, this.isRequest = !1;
                        var n = {
                            page: this.pager,
                            pagesize: this.pagesize,
                            type: this.type_id,
                            isLoading: !1
                        };
                        (0, a.goodOrderList)(n).then(function(n) {
                            var i = r.orderList, o = n.list;
                            i && 1 != r.page ? r.orderList = [].concat(c(i), c(o)) : r.orderList = o, e.stopPullDownRefresh(), 
                            t.loadingOk = !0, r.isShow = !0, t.isRequest = 0 == r.orderList.length;
                        });
                    },
                    navToOrderList: function(e) {
                        (0, i.route)({
                            url: "/shop/order/orderDetail",
                            type: 1,
                            data: {
                                id: e.id
                            }
                        });
                    }
                }
            };
            t.default = b;
        }).call(this, r("543d").default);
    },
    d967: function(e, t, r) {
        (function(e) {
            r("1067"), n(r("66fd"));
            var t = n(r("7219"));
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = r, e(t.default);
        }).call(this, r("543d").createPage);
    }
}, [ [ "d967", "common/runtime", "common/vendor" ] ] ]);